﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="order_result.aspx.cs" Inherits="cn_order_result" %>

<%@ Register Src="~/cn/UserControl/header.ascx" TagName="header" TagPrefix="uc1" %>
<%@ Register Src="~/cn/UserControl/footer.ascx" TagName="footer" TagPrefix="uc2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>成功下定，<%=(new Web.Old_App_Code.BasicSet()).TitleBind() %></title>
    <meta name="Keywords" content="<%=(new Web.Old_App_Code.BasicSet()).KeywordBind() %>" />
    <meta name="Description" content="<%=(new Web.Old_App_Code.BasicSet()).DescriptionBind() %>" />
    <link type="text/css" rel="stylesheet" href="<%=(new Web.Old_App_Code.TemplateLoad()).TemplateCssLoad() %>css/public.css" />
    <link type="text/css" rel="stylesheet" href="<%=(new Web.Old_App_Code.TemplateLoad()).TemplateCssLoad() %>css/index.css" />
    <link type="text/css" rel="stylesheet" href="<%=(new Web.Old_App_Code.TemplateLoad()).TemplateCssLoad() %>css/member.css" />
    <link type="text/css" rel="stylesheet" href="<%=(new Web.Old_App_Code.TemplateLoad()).TemplateCssLoad() %>css/ie.css" />
    <!-- banner 展示效果开始 -->

    <script type="text/javascript" src="<%=(new Web.Old_App_Code.TemplateLoad()).TemplateCssLoad() %>js/banner_show/jquery.js"></script>

    <script type="text/javascript" src="<%=(new Web.Old_App_Code.TemplateLoad()).TemplateCssLoad() %>js/banner_show/slides.js"></script>

    <!-- TAB效果开始 -->

    <script type="text/javascript" src="<%=(new Web.Old_App_Code.TemplateLoad()).TemplateCssLoad() %>js/tab/simpla.jquery.configuration.js"></script>

    <!-- box 效果开始 -->

    <script type="text/javascript" src="<%=(new Web.Old_App_Code.TemplateLoad()).TemplateCssLoad() %>js/box/box_p.js"></script>

    <script type="text/javascript" src="<%=(new Web.Old_App_Code.TemplateLoad()).TemplateCssLoad() %>js/jquery-1.6.2.min.js"></script>

    <!--登陆注册 弹出窗口-->
    <style type="text/css" media="all">
        @import "<%=(new Web.Old_App_Code.TemplateLoad()).TemplateCssLoad() %>js/login/thickbox.css";
    </style>
    <link href="<%=(new Web.Old_App_Code.TemplateLoad()).TemplateCssLoad() %>js/login/1024.css" type="text/css" rel="alternate stylesheet" title="1024 x 768" />

    <script src="<%=(new Web.Old_App_Code.TemplateLoad()).TemplateCssLoad() %>js/login/thickbox.js" type="text/javascript"></script>

    <script src="<%=(new Web.Old_App_Code.TemplateLoad()).TemplateCssLoad() %>js/login/global.js" type="text/javascript"></script>

    <!-- sliderbox开始-->

    <script type="text/javascript" src="<%=(new Web.Old_App_Code.TemplateLoad()).TemplateCssLoad() %>js/sliderbox/slider.js"></script>

    <!-- 头部全部分类 三级导航-->

    <script type="text/javascript" src="<%=(new Web.Old_App_Code.TemplateLoad()).TemplateCssLoad() %>js/allmenu.js"></script>
    
     <link href="<%=(new Web.Old_App_Code.TemplateLoad()).TemplateCssLoad() %>art_dialog/skins/idialog.css" rel="stylesheet" />

    <script type="text/javascript" src="<%=(new Web.Old_App_Code.TemplateLoad()).TemplateCssLoad() %>art_dialog/artDialog.js"></script>

    <script type="text/javascript" src="<%=(new Web.Old_App_Code.TemplateLoad()).TemplateCssLoad() %>art_dialog/plugins/iframeTools.source.js"></script>

    <script type="text/javascript" src="<%=(new Web.Old_App_Code.TemplateLoad()).TemplateCssLoad() %>js/art_dialog.js"></script>

    <script type="text/javascript">
        $(function () {
            $("#btnOrderPay").click(function () {
                if ($("#hdfPayment").val() == "支付宝") {
                    window.open("/alipay/alipayto.aspx?orderNo=" + $("#hdfOrderNo").val() + "&pay_bank=" + $("#hdfPayBank").val());
                }
                if ($("#hdfPayment").val() == "Paypal") {
                    window.open("/paypal/reviewByPaypal.aspx?orderNo=" + $("#hdfOrderNo").val());
                }
                if ($("#hdfPayment").val() == "货到付款") {
                    window.open("/cn/member_center/order_info.html?orderNo=" + $("#hdfOrderNo").val());
                }
                if ($("#hdfPayment").val() == "预存款") {
                    $.ajax({
                        type: "POST",
                        url: "order_pay.ashx",
                        data: "orderNo=" + $("#hdfOrderNo").val(),
                        success: function (msg) {
                            if (msg == "0") {
                                art.dialog.tips("您的余额不足以支付订单金额！", 1.5);
                            }
                            else if (msg == "1") {
                                art.dialog.tips("恭喜您，支付成功！", 1.5);
                                var lurl = "window.location.href='/cn/member_center/order_info.html?orderNo=" + $('#hdfOrderNo').val() + "'";
                                setTimeout(lurl, 2000);
                            }
                        }
                    });
                }
                return false;
            });
        });
    </script>

</head>
<body>
    <uc1:header ID="Header1" runat="server" />
    <div class="container">
        <div class="rightcontent shop_cart">
            <h5 class="third">
                <span>1.我的购物车</span><span>2.填写购物信息</span><span><strong>3.成功下订</strong></span></h5>
            <div class="contain">
                <h1>
                    您的订单已经成功提交!</h1>
                <%Response.Write(OrderBind()); %>
            </div>
            <!--end rightcontent-->
            <span class="clear"></span>
        </div>
    </div>
    <uc2:footer ID="Footer1" runat="server" />
</body>
</html>
